import request from '@/utils/request'

///getAllActivityComment/{aid}
export function getAllActivityComment(aid) {
  return request({
    url: '/reunion/activity/getAllActivityComment/' + aid,
    method: 'get'
  })
}

//addActivityComment
export function addActivityComment(data) {
  return request({
    url: '/reunion/comment/addComment',
    method: 'post',
    data: data
  })
}
export function addComment(data) {
  return request({
    url: '/reunion/comment',
    method: 'post',
    data: data
  })
}


///getActivityParticipantUserInfo/{aid}
export function getActivityParticipantUserInfo(aid) {
  return request({
    url: '/reunion/activity/getActivityParticipantUserInfo/' + aid,
    method: 'get'
  })
}

///addActivityParticipant/{aid}
export function addActivityParticipant(aid) {
  return request({
    url: '/reunion/activity/addActivityParticipant/' + aid,
    method: 'get'
  })
}

// getActivityParticipantCount

export function getActivityParticipantCount(id) {
  return request({
    url: '/reunion/activity/getActivityParticipantCount/' + id,
    method: 'get'
  })
}


//addUActivity
export function addUActivity(data) {
  return request({
    url: '/reunion/activity/addUActivity',
    method: 'post',
    data: data
  })
}

//getAllActivity
export function getAllActivity() {
  return request({
    url: '/reunion/activity/getAllActivity',
    method: 'get'
  })
}


// 查询活动列表
export function listActivity(query) {
  return request({
    url: '/reunion/activity/list',
    method: 'get',
    params: query
  })
}

// 查询活动详细
export function getActivity(id) {
  return request({
    url: '/reunion/activity/' + id,
    method: 'get'
  })
}

// 新增活动
export function addActivity(data) {
  return request({
    url: '/reunion/activity',
    method: 'post',
    data: data
  })
}

// 修改活动
export function updateActivity(data) {
  return request({
    url: '/reunion/activity',
    method: 'put',
    data: data
  })
}

// 删除活动
export function delActivity(id) {
  return request({
    url: '/reunion/activity/' + id,
    method: 'delete'
  })
}
